package com.iss.lxhproject.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

@Controller
public class DirectionController {
    @RequestMapping("gotoreturnlogin")
    public String returnlogin(HttpSession session){
        session.invalidate();
        return "../index";
    }

    @RequestMapping("node/{id}")
    public String gotoNode(@PathVariable("id") String id){
        System.out.println("id="+id);
        return "node"+id;
    }

    @RequestMapping("gotoindex")
    public String index(){
        return "hotelindex";
    }

    @RequestMapping("gotoregister")
    public String register(){
    return "register";
    }

    @RequestMapping("gotoCarousel")
    public String Carousel(){
        return "Carousel";
    }


}
